  /**
   * Generate time : 2012-02-07 16:15:48
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ce.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCEWorkRecord 
 * table comment : 工作记录 
 */
public class ZMCEWorkRecord extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdIsOrder = " ";		/* 是否有单*/
	private String fdOrderId = " ";		/* 对应工单ID*/
	private String fdEquipmentId = " ";		/* 对应设备ID*/
	private String fdUseDepartmentId = " ";		/* 设备使用部门ID*/
	private String fdUseDepartment = " ";		/* 设备使用部门*/
	private String fdType = " ";		/* 工作类型*/
	private String fdContent = " ";		/* 任务内容*/
	private String fdDescription = " ";		/* 反馈描述*/
	private String fdBeganDatetime = " ";		/* 开始时间*/
	private String fdEndDatetime = " ";		/* 完成时间*/
	private String fdDepartmentId = " ";		/* 执行部门ID*/
	private String fdPersonId = " ";		/* 执行人ID*/
	
	private String fdEquipmentCode="";//设备编号
	private String fdEquipmentName="";//设备名称

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsOrder");
	eiColumn.setFieldLength(2);	
	eiColumn.setDescName("是否有单");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdOrderId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("对应工单ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEquipmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("对应设备ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdUseDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("设备使用部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdUseDepartment");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("设备使用部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdType");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("工作类型");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdContent");
	eiColumn.setFieldLength(250);	
	eiColumn.setDescName("任务内容");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDescription");
	eiColumn.setFieldLength(250);	
	eiColumn.setDescName("反馈描述");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdBeganDatetime");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("开始时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEndDatetime");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName("完成时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("执行部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPersonId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("执行人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEquipmentCode");//新加列
	eiColumn.setFieldLength(40);	
	eiColumn.setDescName("设备编号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEquipmentName");//新加列
	eiColumn.setFieldLength(40);	
	eiColumn.setDescName("设备名称");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCEWorkRecord() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdIsOrder - 是否有单
	 * @return the fdIsOrder
	 */
	public String getFdIsOrder() {
		return this.fdIsOrder;
	}
	
	/**
	 * set the fdIsOrder - 是否有单
	 */
	public void setFdIsOrder(String fdIsOrder) {
		this.fdIsOrder = fdIsOrder;
	}
	
	/**
	 * get the fdOrderId - 对应工单ID
	 * @return the fdOrderId
	 */
	public String getFdOrderId() {
		return this.fdOrderId;
	}
	
	/**
	 * set the fdOrderId - 对应工单ID
	 */
	public void setFdOrderId(String fdOrderId) {
		this.fdOrderId = fdOrderId;
	}
	
	/**
	 * get the fdEquipmentId - 对应设备ID
	 * @return the fdEquipmentId
	 */
	public String getFdEquipmentId() {
		return this.fdEquipmentId;
	}
	
	/**
	 * set the fdEquipmentId - 对应设备ID
	 */
	public void setFdEquipmentId(String fdEquipmentId) {
		this.fdEquipmentId = fdEquipmentId;
	}
	
	/**
	 * get the fdUseDepartmentId - 设备使用部门ID
	 * @return the fdUseDepartmentId
	 */
	public String getFdUseDepartmentId() {
		return this.fdUseDepartmentId;
	}
	
	/**
	 * set the fdUseDepartmentId - 设备使用部门ID
	 */
	public void setFdUseDepartmentId(String fdUseDepartmentId) {
		this.fdUseDepartmentId = fdUseDepartmentId;
	}
	
	/**
	 * get the fdUseDepartment - 设备使用部门
	 * @return the fdUseDepartment
	 */
	public String getFdUseDepartment() {
		return this.fdUseDepartment;
	}
	
	/**
	 * set the fdUseDepartment - 设备使用部门
	 */
	public void setFdUseDepartment(String fdUseDepartment) {
		this.fdUseDepartment = fdUseDepartment;
	}
	
	/**
	 * get the fdType - 工作类型
	 * @return the fdType
	 */
	public String getFdType() {
		return this.fdType;
	}
	
	/**
	 * set the fdType - 工作类型
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}
	
	/**
	 * get the fdContent - 任务内容
	 * @return the fdContent
	 */
	public String getFdContent() {
		return this.fdContent;
	}
	
	/**
	 * set the fdContent - 任务内容
	 */
	public void setFdContent(String fdContent) {
		this.fdContent = fdContent;
	}
	
	/**
	 * get the fdDescription - 反馈描述
	 * @return the fdDescription
	 */
	public String getFdDescription() {
		return this.fdDescription;
	}
	
	/**
	 * set the fdDescription - 反馈描述
	 */
	public void setFdDescription(String fdDescription) {
		this.fdDescription = fdDescription;
	}
	
	/**
	 * get the fdBeganDatetime - 开始时间
	 * @return the fdBeganDatetime
	 */
	public String getFdBeganDatetime() {
		return this.fdBeganDatetime;
	}
	
	/**
	 * set the fdBeganDatetime - 开始时间
	 */
	public void setFdBeganDatetime(String fdBeganDatetime) {
		this.fdBeganDatetime = fdBeganDatetime;
	}
	
	/**
	 * get the fdEndDatetime - 完成时间
	 * @return the fdEndDatetime
	 */
	public String getFdEndDatetime() {
		return this.fdEndDatetime;
	}
	
	/**
	 * set the fdEndDatetime - 完成时间
	 */
	public void setFdEndDatetime(String fdEndDatetime) {
		this.fdEndDatetime = fdEndDatetime;
	}
	
	/**
	 * get the fdDepartmentId - 执行部门ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 执行部门ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	
	/**
	 * get the fdPersonId - 执行人ID
	 * @return the fdPersonId
	 */
	public String getFdPersonId() {
		return this.fdPersonId;
	}
	
	/**
	 * set the fdPersonId - 执行人ID
	 */
	public void setFdPersonId(String fdPersonId) {
		this.fdPersonId = fdPersonId;
	}
	
	/**
	 * @return the fdEquipmentCode
	 */
	public String getFdEquipmentCode() {
		return fdEquipmentCode;
	}
	/**
	 * @param fdEquipmentCode the fdEquipmentCode to set
	 */
	public void setFdEquipmentCode(String fdEquipmentCode) {
		this.fdEquipmentCode = fdEquipmentCode;
	}
	/**
	 * @return the fdEquipmentName
	 */
	public String getFdEquipmentName() {
		return fdEquipmentName;
	}
	/**
	 * @param fdEquipmentName the fdEquipmentName to set
	 */
	public void setFdEquipmentName(String fdEquipmentName) {
		this.fdEquipmentName = fdEquipmentName;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdIsOrder(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsOrder")), fdIsOrder));
		setFdOrderId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOrderId")), fdOrderId));
		setFdEquipmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentId")), fdEquipmentId));
		setFdUseDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUseDepartmentId")), fdUseDepartmentId));
		setFdUseDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdUseDepartment")), fdUseDepartment));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
		setFdContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdContent")), fdContent));
		setFdDescription(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDescription")), fdDescription));
		setFdBeganDatetime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdBeganDatetime")), fdBeganDatetime));
		setFdEndDatetime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEndDatetime")), fdEndDatetime));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdPersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPersonId")), fdPersonId));
		
		setFdEquipmentCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentCode")), fdEquipmentCode));//新加字段
		setFdEquipmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEquipmentName")), fdEquipmentName));//新加字段
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdIsOrder",StringUtils.toString(fdIsOrder, eiMetadata.getMeta("fdIsOrder")));	
			map.put("fdOrderId",StringUtils.toString(fdOrderId, eiMetadata.getMeta("fdOrderId")));	
			map.put("fdEquipmentId",StringUtils.toString(fdEquipmentId, eiMetadata.getMeta("fdEquipmentId")));	
			map.put("fdUseDepartmentId",StringUtils.toString(fdUseDepartmentId, eiMetadata.getMeta("fdUseDepartmentId")));	
			map.put("fdUseDepartment",StringUtils.toString(fdUseDepartment, eiMetadata.getMeta("fdUseDepartment")));	
			map.put("fdType",StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));	
			map.put("fdContent",StringUtils.toString(fdContent, eiMetadata.getMeta("fdContent")));	
			map.put("fdDescription",StringUtils.toString(fdDescription, eiMetadata.getMeta("fdDescription")));	
			map.put("fdBeganDatetime",StringUtils.toString(fdBeganDatetime, eiMetadata.getMeta("fdBeganDatetime")));	
			map.put("fdEndDatetime",StringUtils.toString(fdEndDatetime, eiMetadata.getMeta("fdEndDatetime")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdPersonId",StringUtils.toString(fdPersonId, eiMetadata.getMeta("fdPersonId")));	
			
			map.put("fdEquipmentCode",StringUtils.toString(fdEquipmentCode, eiMetadata.getMeta("fdEquipmentCode")));//新加字段	
			map.put("fdEquipmentName",StringUtils.toString(fdEquipmentName, eiMetadata.getMeta("fdEquipmentName")));//新加字段
			
		return map;
	
	}
}